Skip to content

Enable a strong enforce CSP by default#1065

Merged
labkey-adam merged 2 commits intodevelopfrom
fb_default_enforce_csp
May 19, 2025
Merged

Enable a strong enforce CSP by default#1065
labkey-adam merged 2 commits intodevelopfrom
fb_default_enforce_csp

Conversation

@labkey-adam
Copy link
Contributor

Rationale

Set a strong enforce CSP by default. Remove CSP properties from application.properties files.

Related Pull Requests

""";
// Add upgrade_insecure_requests substitution, frame-ancestors, and e12 version for enforce CSP
String enforceCsp = baseCsp + """
${UPGRADE.INSECURE.REQUESTS}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this not need a ; at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The substitution adds the ;

This way, if running without HTTPS we don't get an extra semicolon

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@labkey-adam labkey-adam merged commit 9c5da74 into develop May 19, 2025
5 of 7 checks passed
@labkey-adam labkey-adam deleted the fb_default_enforce_csp branch May 19, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants